const { withInfoPlist } = require('@expo/config-plugins');

const withAmap = (config, { iosKey }) => {
	return withInfoPlist(config, (config) => {
		config.modResults.AMapApiKey = iosKey;
		return config;
	});
};

module.exports = withAmap;
